﻿package com.sorayume.visuals
{
	import com.sorayume.visuals.SY_Asset;
	
	public class SY_Library 
	{
		private var nameArray:Array = null;
		private var objectArray:Array = null;
		
		public function SY_Library():void
		{
			//constructor function
		}
	
		public function startLibrary():Array
		{
			nameArray = new Array();
			objectArray = new Array();
			trace("Library loading initated");
			return nameArray;
			return objectArray;
		}
	
		public function pushLibrary(syal_file:XML):*
		{
			for each(syal_file.assetlist)
			{
				nameArray.push(syal_file.id);
				SY_Asset.load(syal_file.src, syal_file.class);
			}
		}
	}
}